* {
    padding: 0;
    margin: 0;
}

body {
    background: #00ffff;
    font-size: 14px;
}

img {
    max-width: 100%
}

.clearfix:after {
    display: block;
    clear: both;
    content: "";
    height: 0;
    width: 0
}

.main {
    background: #ffffff;
    height: 640px;
    width: 860px;
    margin: 80px auto;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0, 0, 0, .1);
    position: relative;
    /* 兼容inline-block存在的间距问题，letter-spacing等参数可按实际字体大小修改 */
    font-size: 0;
    /* letter-spacing: -4px;
    word-spacing: -4px; */
}

.main::after {
    display: block;
    clear: both;
    content: "";
    height: 0;
    width: 0;
}

.main .tools {
    width: 56px;
    height: 100%;
    background: #28292c;
    padding: 16px 8px;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    float: left;
}

.main .tools .tools-btn {
    color: #999;
    text-align: center;
    cursor: pointer;
    display: block;
    width: 40px;
    margin-bottom: 12px;
}

.main .tools .tools-btn:hover {
    color: #ccc;
}

.main .tools .tools-btn.active {
    color: #9eeb6b;
}

.main .tools .logo {
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
    width: 40px;
}

.main .tools .logo img {
    width: 100%;
}

.main .tools .chat>.iconfont {
    font-size: 28px;
    line-height: 28px;
}

.main .tools .history>.iconfont {
    font-size: 24px;
    line-height: 24px;
}

.main .tools .setting {
    position: absolute;
    bottom: 24px;
}

.main .tools .setting>.iconfont {
    font-size: 23px;
    line-height: 23px;
}

.main .chats-list {
    width: 220px;
    height: 100%;
    background: #e7e8e9;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    padding: 4px 0;
    float: left;
}

.main .chats-list .search {
    padding: 14px 12px;
    padding-bottom: 10px;
    width: 100%;
}

.main .chats-list .search input {
    font-size: 13px;
    width: 100%;
    height: 28px;
    padding: 4px 8px;
    outline: none;
    border-radius: 2px;
    border: 1px solid #ccc;
}

.main .chats-list .list {
    position: relative;
    height: 586px;
    overflow-x: hidden;
    padding-bottom: 12px;
}

.main .chats-list .list-item {
    position: relative;
    cursor: pointer;
}

.main .chats-list .list-item .chats {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    /* justify-content: start; */
}

.main .chats-list .list-item.chats-avtive {
    background: #c9c8c8;
}

.main .chats-list .list-item .chats-avatar {
    width: 48px;
    min-width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 4px;
}

.main .chats-list .list-item .chats-avatar img {
    width: 100%;
    height: 100%;
}

.main .chats-list .list-item .chats-hot {
    width: 10px;
    height: 10px;
    background-color: #ff3b30;
    border-radius: 5px;
    position: absolute;
    left: 53px;
    top: 5px;
}

.main .chats-list .list-item .chats-num {
    width: 16px;
    height: 16px;
    background-color: #ff3b30;
    border-radius: 50%;
    position: absolute;
    left: 52px;
    top: 2px;
    color: white;
    line-height: 16px;
    text-align: center;
    font-size: 10px;
}

.main .chats-list .list-item .chats-content {
    width: 144px;
    height: 48px;
    margin-left: 8px;
}

.main .chats-list .list-item .chats-content .chats-user-title {
    color: #000;
    font: 14px;
    line-height: 24px;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
}

.main .chats-list .list-item .chats-content .chats-user-title .username {
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100px;
    overflow: hidden;
}

.main .chats-list .list-item .chats-content .chats-user-title .usertime {
    font-size: 13px;
    color: #999999;
    width: 32px;
    overflow: hidden;
}

.main .chats-list .list-item .chats-content .chats-user-msg {
    color: #999999;
    font-size: 12px;
    line-height: 24px;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 128px;
    overflow: hidden;
}

.main .chat-content {
    width: 584px;
    /* height: 100%; */
    height: 640px;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
    /* display: inline-block; */
    font-size: 14px;
    float: left;
}

.not-data {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main .chat-content .header {
    height: 56px;
    width: 100%;
    line-height: 40px;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    overflow: hidden;
}

.main .chat-content .header .title {
    font-size: 18px;
    line-height: 64px;
}

.main .chat-content .header .user-setting {
    line-height: 64px;
    font-size: 18px;
    color: #999;
    cursor: pointer;
}

.main .chat-content .header .user-setting:hover {
    color: #666;
}

.main .chat-content .header .user-setting>i {
    font-size: 18px;
}

.main .chat-content .content {
    height: 438px;
    width: 100%;
    border-bottom: 1px solid #ccc;
    padding: 14px 16px;
    color: #000;
    position: relative;
    overflow-x: hidden;
}

.main .chat-content .save {
    width: 100%;
    height: 146px;
    position: relative;
}

.main .chat-content .save .chat-tools {
    padding: 4px 8px;
}

.main .chat-content .save .chat-tools .chat-tools-btn {
    display: inline-block;
    height: 28px;
    width: 32px;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
}

.main .chat-content .save .chat-tools .chat-tools-btn .iconfont {
    font-size: 20px;
}

.main .chat-content .save .chat-tools .chat-tools-btn:hover {
    background: #EEEEEE;
}

#text-input {
    width: 100%;
    height: 72px;
    padding: 0px 8px;
    resize: none;
    border: 0;
    outline: none;
    background: #f5f5f5;
}

.main .chat-content .save .footer {
    height: 30px;
    text-align: right;
    padding: 2px 8px 4px;
}

.main .chat-content .save .footer span {
    position: relative;
    top: -2px;
}

.main .chat-content .save .chat-btn {
    display: inline-block;
    padding: 2px 12px;
    border: 1px solid #eee;
    cursor: pointer;
    margin: 0 8px;
    border-radius: 2px;
}

.main .chat-content .save .chat-btn.close {
    background: #fff;
    border-color: #fff;
}

.main .chat-content .save .chat-btn.close:hover {
    background: #f0f0f0;
    border-color: #ddd;
    opacity: .8;
}

.main .chat-content .save .chat-btn.close:active {
    opacity: 1;
    background: #f0f0f0;
    border-color: #ddd;
}

.main .chat-content .save .chat-btn.send {
    background: #1E9FFF;
    border-color: #1E9FFF;
    opacity: 1;
    color: #ffffff;
}

.main .chat-content .save .chat-btn.send:hover {
    background: #1E9FFF;
    border-color: #1E9FFF;
    opacity: .8;
}

.main .chat-content .save .chat-btn.send:active {
    background: #1E9FFF;
    border-color: #1E9FFF;
    opacity: 1;
}

#user-bar {
    width: 240px;
    height: 586px;
    background: #fff;
    position: absolute;
    right: 3px;
    top: 54px;
    /* display: none; */
    padding: 12px;
}

#user-bar .user-info {
    position: relative;
}

#user-bar .user-info .user-info-item {
    padding: 4px;
}

#user-bar .user-info .user-info-item input {
    font-size: 14px;
    width: 100%;
    height: 28px;
    padding: 4px;
    outline: none;
    border-radius: 2px;
    border: 1px solid #ccc;
    padding-left: 6px;
}

#user-bar .user-info .user-info-item textarea {
    width: 100%;
    height: 100px;
    padding: 4px;
    resize: none;
    outline: none;
    padding-left: 6px;
    border: 1px solid #ccc;
}

#user-bar .user-info .user-info-item .user-info-btn {
    display: inline-block;
    height: 28px;
    width: 64px;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #1E9FFF;
    background: #1E9FFF;
    color: #fff;
    line-height: 24px;
    font-size: 14px;
}

#user-bar .user-info .user-info-item .user-info-btn:hover {
    background: #3280fc;
    opacity: .8;
}

#user-bar .user-info .user-info-item .user-info-btn:active {
    opacity: 1;
}

.transfer-select {
    display: block;
    width: 100%;
    color: #999;
    padding: 4px;
    border: 1px solid #ddd;
    outline: none;
    line-height: 1.4;
    font-size: 14px;
}